package com.study.Controller;

import com.study.mapper.LogMapper;
import com.study.model.Loguser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Select_u {
    @Autowired
    LogMapper logMapper;

    Loguser loguser;
    @GetMapping("/get")
    public String getlocal(String  id){
        System.out.println(logMapper.getuser("23"));
        return logMapper.getuser(id).toString();
    }

    @GetMapping("ls")
    public String ls(){
        return logMapper.ls().toString();
    }



}
